package com.mezz.bones.im.logic.strategy;

import com.mezz.bones.framework.core.strategy.IStrategy;

/**
 * IM回调策略接口
 */
public interface IImCallbackStrategy extends IStrategy {

    //定义tag常量
    String PRIVATE_MESSAGE_BEFORE_SEND = "private_message_before_send";
    String PRIVATE_MESSAGE_AFTER_SEND = "private_message_after_send";

    String GROUP_MESSAGE_BEFORE_SEND = "group_message_before_send";
    String GROUP_MESSAGE_AFTER_SEND = "group_message_after_send";

    /**
     * 处理回调事件
     * @param body 回调消息体
     */
    Object process(String body);
}